package net.cgsoft.widget.model;


import net.cgsoft.widget.utils.Util;

import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;

/**
 * Created by Youga on 2016/1/6.
 */
public class DateModel {

    String date;
    int day;
    int monthState;
    ScheduleDate scheduleDate;

    public DateModel(Calendar calendar,int monthState) {
        this.date = Util.mDateFormat.format(calendar.getTime());
        this.day = calendar.get(Calendar.DAY_OF_MONTH);
        this.monthState = monthState;
    }

    public String getDate() {
        return date;
    }

    public String getStringDay() {
        return day < 10 ? "0" + day : "" + day;
    }

    public int getMonthState() {
        return monthState;
    }

    public ScheduleDate getScheduleDate() {
        return scheduleDate;
    }

    public void setScheduleDate(ScheduleDate scheduleDate) {
        this.scheduleDate = scheduleDate;
    }
}
